package com.bw.paper.mvp.presenter;

import com.bw.paper.R;
import com.bw.paper.mvp.base.model.BaseEntity;
import com.bw.paper.mvp.base.presenter.BasePresenter;
import com.bw.paper.mvp.contact.UserContract;
import com.bw.paper.entity.UserItemEntity;
import com.bw.paper.entity.UserMenuEntity;


import java.util.ArrayList;

import javax.inject.Inject;

import io.reactivex.annotations.NonNull;

public class UserPresenter extends BasePresenter<UserContract.IUserhModel, UserContract.IUserhView> {


    @Inject
    public UserPresenter(UserContract.IUserhModel mModel, UserContract.IUserhView mView) {
        super(mModel, mView);
    }


    public void iniData() {
        ArrayList<UserMenuEntity> menues = new ArrayList<>();
        menues.add(new UserMenuEntity("信息",R.drawable.res_7icon_413,null));
        menues.add(new UserMenuEntity("收藏",R.drawable.res_7icon_414,null));
        menues.add(new UserMenuEntity("评论",R.drawable.res_7icon_415,null));
        menues.add(new UserMenuEntity("历史",R.drawable.res_7icon_416,null));
        menues.add(new UserMenuEntity("关注",R.drawable.res_icon7_278,null));
        menues.add(new UserMenuEntity("下载",R.drawable.res_icon7_279,null));
        menues.add(new UserMenuEntity("公益",R.drawable.res_icon7_280,null));
        menues.add(new UserMenuEntity("问政",R.drawable.res_icon7_281,null));
        mView.refreshMenu(menues);

          ArrayList<UserItemEntity> userItemEntities = new ArrayList<>();
        userItemEntities.add(new UserItemEntity("积分商城",null));
        userItemEntities.add(new UserItemEntity("夜间模式",null));
        userItemEntities.add(new UserItemEntity("意见反馈",null));
        userItemEntities.add(new UserItemEntity("更多设置",null));
        mView.refreshItemes(userItemEntities);



    }

    @Override
    public void onNext(@NonNull BaseEntity baseEntity) {

    }
}